package com.zzy.dao;

import com.zzy.pojo.User;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface UserDao {

    public void addUser(User user);

    public int deleteUserById(@Param("id") int id);

    public int updateUser(User user);

    public List<User> queryAll();

    public User queryById(@Param("id") int id);
}
